<?php


namespace App\Http\observer;


use App\Models\Image;
use App\Models\TxLog;

class TxLogObserver
{
    public function updated(TxLog $txLog)
    {
        if ($txLog["state"]==1&&$txLog["qrcode"]){
            Image::del_data($txLog["qrcode"]);
        }
    }
}
